@extends('wechat.layouts.application')

@section('content')
    <div class="page-list" data-log="商品列表">
        <ol class="version">

            @foreach($goods as $good)
                <li>
                    <a class="version-item" href="/good/{{$good->id}}">
                        <div class="version-item-img"><img
                                    src="{{$good->image}}">
                        </div>
                        <div class="version-item-intro">
                            <div class="version-item-name"><p>{{$good->name}}</p></div>
                            <div class="version-item-intro-price"><span>{{doubleval($good->price)}}元</span></div>
                        </div>
                    </a>
                </li>
            @endforeach
        </ol>
    </div>
@endsection
